<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function foo(e){
				console.log(e)
				console.log(e.button)
				console.log(e.clientx+", "+e.clientY);
			}
			document.onmousedown = foo;
			</script>
	</body>
</html>